package org.example.maven.museumuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.maven.museumuser.domain.entity.IdentityName;

@Mapper
public interface IdentityNameMapper extends BaseMapper<IdentityName> {
    //插入身份码和名字的映射关系
    @Insert("insert into identity_name(`identity`,name) values (#{identity},#{name})")
    void addIdentityByName(String identity,String name);

}
